import React, { useEffect } from 'react'
import axios from 'axios'
export default function App() {

  // 刚加载的时候就发送请求
  useEffect(()=>{
    axios.get('/api1/user')
  },[])
  return (
    <div>App</div>
  )
}
